﻿using System;

namespace 作业1
{
    class Program
    {
        static void Main(string[] args)
        {
            int rooster, hen, chicken;
            for(rooster = 0;rooster <= 20;rooster ++)
                for(hen = 0;hen <= 33; hen ++)
                {
                    chicken = 100 - rooster - hen;
                    if(5 * rooster + 3 * hen + chicken / 3.0 == 100)
                    {
                        Console.WriteLine("公鸡" + rooster + "母鸡" + hen + "小鸡" + chicken);
                    }
                }

            Console.WriteLine("........................................");

            Console.ReadKey();
        }
    }
}
